package org.erepublik.company.searchCriteria;

import java.util.Comparator;

import org.erepublik.company.comparators.FoodComparatorByWellness;
import org.erepublik.company.product.Food;

/**
 * Kryterium sortowania jedzenia
 * 
 * @author Kacper Gorski 'Railman' railman85@gmail.com
 */
public enum EFoodSearchCriteria {
    WELLNESS(new FoodComparatorByWellness(), "wellness");


    private Comparator<Food> comparator;
    private String name;

    private EFoodSearchCriteria(Comparator<Food> comparator, String name) {
        this.comparator = comparator;
        this.name = name;
    }

    public Comparator<Food> getComparator() {
        return comparator;
    }

    public String getName() {
        return name;
    }
}
